import UI_view_status_text from "../../../ui/Main/UI_view_status_text";

export class ViewStatus {

    public ui: UI_view_status_text;
    private _isQuery: boolean;
    public set isQuery(value: boolean) {
        if(this._isQuery == value) return;
        this._isQuery = value;
        if(this._isQuery) {
            this.ui.m_text_status.text = '查询中';
        } else {
            this.ui.m_text_status.text = '就绪';
        }
    }
    public get isQuery(): boolean {
        return this._isQuery;
    }

    constructor(ui: UI_view_status_text) {
        this.ui = ui;
        this.isQuery = false;
    }

}